package com.ershi.spring.annotation.bean;

/**
 * @author 二十
 * @since 2021/10/30 8:10 下午
 */
public class Child {

	int age ;

	String name ;

	public Child() {
		System.out.println("Child...构造器");
	}

	public void init(){
		System.out.println("Child...init");
	}

	public void destroy(){
		System.out.println("Child...destroy");
	}

	public Child(int age, String name) {
		this.age = age;
		this.name = name;
		System.out.println("Child...构造器");
	}

	@Override
	public String toString() {
		return "Child{" +
				"age=" + age +
				", name='" + name + '\'' +
				'}';
	}
}
